<!DOCTYPE html>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:panelGroup rendered="#{not empty userc.userb.user.id}" >
        <div class="top-logo">
            <h:link outcome="/index" > 
                <h:graphicImage library="image" name="small-logo.png" />
            </h:link>
        </div>

        <div class="top-login">
            <h:form>
                <h:outputLabel id="name" value="#{userc.personb.person.name} | " />
                <h:commandLink action="#{userc.logout}" value="Sair" />
            </h:form>
        </div>

        <div class="top-icon">
            <h:panelGrid columns="3">
            
                <h:link outcome="/user/home">
                    <h:graphicImage library="image" name="icon-home.png" title="Home"/>
                </h:link>
                
                <h:link outcome="/user/profile/profile">
                    <h:graphicImage library="image" name="icon-head2.png" title="Perfil"/>
                </h:link>
                
                <h:link outcome="/user/product/my-products" >
                    <h:graphicImage library="image" name="icon-suaparte1.png" title="Sua Parte"/>
                </h:link>
            
            </h:panelGrid>
        </div>
        
    </h:panelGroup>


</ui:composition>		